﻿namespace Way.Bus.WMS.ST.Model
{
    using System;
    using System.Runtime.CompilerServices;
    using Way.Bus.Model;
    using Way.EAP.DataAccess.Entity;

    [EntityClassAttribut("Acc_WMS_TransportplanOutNotice", "发货通知", IsOnAppendProperty=true)]
    public class ST_TransportplanOutNotice : BusinessBase
    {
        protected override string GetSearchSQL()
        {
            string searchSQL = base.GetSearchSQL();
            string str2 = this.ToString();
            return ("select  " + str2 + ".*,b.SourceName as OutNoticeSourceName,b.Remark as OutNoticeRemark  from (" + searchSQL + ") " + str2 + " left join Acc_WMS_OutNotice b on " + str2 + ".OutNoticeID=b.id");
        }

        public ST_TransportplanOutNotice[] GetTransOutNotice()
        {
            return null;
        }

        [EntityField(50), EntityControl("发货单号", false, true, 2), EntityForeignKey(typeof(ST_OutNotice), "ID", "code")]
        public int OutNoticeID { get; set; }

        [NotSearchAttribut, EntityControl("备注", false, true, 4)]
        public string OutNoticeRemark { get; set; }

        [EntityControl("源名称", false, true, 3), NotSearchAttribut]
        public string OutNoticeSourceName { get; set; }

        [EntityField(50), EntityControl("运输计划", false, false, 1), EntityForeignKey(typeof(ST_Transportplan), "ID", "code")]
        public int TransportplanID { get; set; }
    }
}

